@extends('backstage.layout.master')
@section('title', '生成售后单')
@section('style')
        <!-- page specific plugin styles -->
<link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.custom.min.css"/>
<link rel="stylesheet" href="assets/css/chosen.css"/>
<link rel="stylesheet" href="assets/css/datepicker.css"/>
<link rel="stylesheet" href="assets/css/bootstrap-timepicker.css"/>
<link rel="stylesheet" href="assets/css/daterangepicker.css"/>
<link rel="stylesheet" href="assets/css/colorpicker.css"/>
<!-- fonts -->
<style>
    .ace-file-input input[type=file]{
        position:static;
    }
</style>
@stop
@section('content')
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try {
                ace.settings.check('breadcrumbs', 'fixed')
            } catch (e) {
            }
        </script>
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">主页</a>
            </li>
            <li class="active">
                <a href="/backstage/order/order-list">订单</a>
            </li>
            <li>
                生成售后单
            </li>
        </ul><!-- .breadcrumb -->
    </div>
    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <div class="page-header">
                    <h1>
                        订单
                        <small>
                            <i class="icon-double-angle-right"></i>
                            生成售后单
                        </small>
                    </h1>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" action="backstage/order/submit-after" method="post" enctype="multipart/form-data">
                            <div class="form-group {{$errors->first('order_id')!=''?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="form-field-1"> 订单编号 </label>
                                <div class="col-sm-4">
                                    <input type="text" name="order_id" value="" id="order_id" placeholder="订单编号" class="width-100">
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('order_id')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="space-4"></div>
                            <div class="form-group {{$errors->first('type')!=""?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="type"> 售后类型 </label>
                                <div class="col-sm-4">
                                    <select name="type">
										<option value="1">退货退款</option>
										<option value="2">换货</option>
									</select>
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('type')}}</div>
                                </div>
                            </div>
							<div class="space-4"></div>
                            <div class="form-group {{$errors->first('image1')!=''?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="image1">
                                    说明图1 </label>
                                <div class="col-sm-4">
                                    <input type="file" accept="image/*" id="image1" name="image1" placeholder="说明图1">
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('image1')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
							<div class="form-group {{$errors->first('image2')!=''?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="image2">
                                    说明图2 </label>
                                <div class="col-sm-4">
                                    <input type="file" accept="image/*" id="image2" name="image2" placeholder="说明图2">
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('image2')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
							<div class="form-group {{$errors->first('image3')!=''?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="image3">
                                    说明图3 </label>
                                <div class="col-sm-4">
                                    <input type="file" accept="image/*" id="image3" name="image3" placeholder="说明图3">
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('image3')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group {{$errors->first('message')!=''?'has-error':''}}">
                                <label class="col-sm-4 control-label no-padding-right" for="message">
                                    描述说明 </label>
                                <div class="col-sm-4">
                                    <textarea class="form-control" id="message" name="message" placeholder="描述说明 "></textarea>
                                </div>
                                <div class="col-sm-4">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('message')}}</div>
                                </div>
								<div class="col-sm-4">
                                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('message')}}</div>
                                </div>
                            </div>
                            <div class="clearfix form-actions">
                                <div class="col-md-offset-5 col-md-9">
                                    <button class="btn btn-info" type="submit">
                                        <i class="icon-ok bigger-110"></i>
                                        提交
                                    </button>
                                    &nbsp; &nbsp; &nbsp;
                                    <button class="btn" type="reset">
                                        <i class="icon-undo bigger-110"></i>
                                        重置
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div><!-- /.col -->
                </div>
                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
@stop
@section('script')
    <script type="text/javascript">
        $(function () {
            $('#image1,#image2,#image3,#image_back_preview').ace_file_input({
                no_file: '还未选择图片',
                btn_choose: '选择',
                btn_change: '重新选择',
                droppable: false,
                onchange: null,
                thumbnail: true //| true | large
                //whitelist:'gif|png|jpg|jpeg'
                //blacklist:'exe|php'
                //onchange:''
                //
            });
        });
    </script>
@stop